<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>flex布局示例</title>
    <link rel="stylesheet" href="css/style.css">
</head>
<body>
    <div id="logo">
        <h1>Flex布局演示</h1>
    </div>
    <div id="menu">
        <ul>
            <li><a href="#">首页</a></li>
            <li><a href="#">产品</a></li>
            <li><a href="#">服务</a></li>
            <li><a href="#">关于</a></li>
            <li><a href="#">联系</a></li>
        </ul>
        <div class="clear"></div>
    </div>
    <div id="main">
        <div class="left">
            <div class="box1">1</div>
            <div class="box2">2</div>
            <div class="box3">3</div>
            <div class="box4">4</div>
        </div>
        <div class="right">
            <p>main是flex容器，它的flex项为left，right</p>
            <p>同时，left也作为四个小盒子的父容器，设置成为flex容器。</p>
            <p>可以给box1~4这四个flex item设置一些属性，叫做item属性，改变具体布局的显示</p>
        </div>

    </div>
    <div id="footer">
        <h1>版权归王老师所有！！！</h1>

    </div>
</body>
</html>